def isequal(num,ans):
    if num < ans:
        print ('too small')
        return False
    elif num > ans:
        print('too big')
        return False
    else :
        print('right')
        return True
    
from random import randint
ans = randint(1,20)
print('please enter a num')
bingo = False
while bingo == False:
    num=int(input())
    bingo = isequal(num,ans)
